#include "comFinl.h"
#ifndef Account_h
#define Account_h
class Account:public comFinal{
	friend	ostream &operator<<( ostream &os,  Account &s);
protected:
	int Accoun;
	int Econ;
	int majTotal;
	float majAve;
public:
	Account(char *n,int Eng,int Chi,int Mat,int Acc,int Eco);
	Account(){};
	int getMajtotal()
	{
		return Econ+Accoun;
	}
	float getMajave()
	{
		return float((Accoun+Econ) /2 );
	}
	int getAccount()
	{
		return Accoun;
	}
	int getEcon()
	{
		return Accoun;
	}
	void setAccount(int x)
	{
		Accoun=x;
	}
	void setEcon(int x)
	{
		Econ=x;
	}
	void show();


};
#endif